It is an attribute that can be applied in the controller. It tell that which the action execution is done. Action Filters are additional attributes that can be applied to either a controller section or the entire controller to modify the way in which action is executed. It is derivied from System.Attribute.
There are four type of filter that support asp.net MVC
1-Authorization filter – It implements IAuthorization attribute. It contain the logic for authentication for controller action.
2-Action Filter- It implements IActionFilter attribute. It contain the logic that is executed before and after control action executes.
3-Result Filter-It implements IResult attribute. It contain the logic that is executed before and after the view result execution.
4-Exeception Filter-It implants IException attribute. It contain the logic for handle error it executes at the last of all filter.
Liked By
Write Answer
What are Action Filters in MVC?
Join MindStick Community
You have need login or register for voting of answers or question.
Manish Kumar
10-May-2017It is an attribute that can be applied in the controller. It tell that which the action execution is done. Action Filters are additional attributes that can be applied to either a controller section or the entire controller to modify the way in which action is executed. It is derivied from System.Attribute.
There are four type of filter that support asp.net MVC
1-Authorization filter – It implements IAuthorization attribute. It contain the logic for authentication for controller action.
2-Action Filter- It implements IActionFilter attribute. It contain the logic that is executed before and after control action executes.
3-Result Filter-It implements IResult attribute. It contain the logic that is executed before and after the view result execution.
4-Exeception Filter-It implants IException attribute. It contain the logic for handle error it executes at the last of all filter.